﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ACE.Wireless.PhoneBattery.DataModel;
using ACE.Wireless.PhoneBattery.Common;
using ACE.Wireless.PhoneBattery.BLL;

public partial class NotPrivilege : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            User user = new PageBase().UserInfo;
           
            int status = Convert.ToInt32(Request.QueryString["status"]);
            ///Forbidden resource
            lblPrivilege.Text = "You don't have the privilege to access the module. Please contact the administrator.";
            if (Request.UrlReferrer != null && Request.UrlReferrer.AbsoluteUri != Request.Url.AbsoluteUri)
                this.RegisterStartupScript("error", "<script>window.top.location='" + Request.Url.AbsoluteUri + "'</script>");
        }
    
    }
}
